home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / doeo.swf / scripts / DefineSprite_480 / frame_1 / PlaceObject2_408_108 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2013-04-24  |  686b  |  46 lines

  1. onClipEvent(enterFrame){
  2.    if(_parent.t > go)
  3.    {
  4.       s = 1;
  5.    }
  6.    if(s == 1)
  7.    {
  8.       if(t == 0)
  9.       {
  10.          if(_Y > y)
  11.          {
  12.             _Y = _Y - 30;
  13.          }
  14.          else if(_Y <= y)
  15.          {
  16.             t = 1;
  17.          }
  18.       }
  19.       else if(t == 1)
  20.       {
  21.          _Y = _Y - 10;
  22.          t = 2;
  23.       }
  24.       else if(t == 2)
  25.       {
  26.          _Y = _Y - 5;
  27.          t = 3;
  28.       }
  29.       else if(t == 3)
  30.       {
  31.          _Y = _Y + 5;
  32.          t = 4;
  33.       }
  34.       else if(t == 4)
  35.       {
  36.          _Y = _Y + 10;
  37.          t = 5;
  38.       }
  39.       else if(t == 5)
  40.       {
  41.          _Y = y;
  42.          t = 6;
  43.       }
  44.    }
  45. }
  46.